﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Skugo.Shared;

namespace Skugo
{
    /// <summary>
    /// A windowed / docked plugin that the user can manipulate.
    /// </summary>
    public abstract class DockablePlugin : Plugin
    {
        public DockablePlugin(String remoteTypeName, Client client, String displayName) :
            base(remoteTypeName, client)
        {
            // Start writing the packet that will create the plugin
            var outgoing = this.BeginCreateRemotePlugin();

            // Add the name of the ui element to the construction packet
            outgoing.WriteAsciiString(displayName);

            // Finish off creation of the remote plugin
            this.EndCreateRemotePlugin(outgoing);
        }
    }
}
